package cn.online.taxi.manager.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbCarDriverBindRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbCarDriverBindRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDriverInfoIdIsNull() {
            addCriterion("driver_info_id is null");
            return (Criteria) this;
        }

        public Criteria andDriverInfoIdIsNotNull() {
            addCriterion("driver_info_id is not null");
            return (Criteria) this;
        }

        public Criteria andDriverInfoIdEqualTo(Integer value) {
            addCriterion("driver_info_id =", value, "driverInfoId");
            return (Criteria) this;
        }

        public Criteria andDriverInfoIdNotEqualTo(Integer value) {
            addCriterion("driver_info_id <>", value, "driverInfoId");
            return (Criteria) this;
        }

        public Criteria andDriverInfoIdGreaterThan(Integer value) {
            addCriterion("driver_info_id >", value, "driverInfoId");
            return (Criteria) this;
        }

        public Criteria andDriverInfoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("driver_info_id >=", value, "driverInfoId");
            return (Criteria) this;
        }

        public Criteria andDriverInfoIdLessThan(Integer value) {
            addCriterion("driver_info_id <", value, "driverInfoId");
            return (Criteria) this;
        }

        public Criteria andDriverInfoIdLessThanOrEqualTo(Integer value) {
            addCriterion("driver_info_id <=", value, "driverInfoId");
            return (Criteria) this;
        }

        public Criteria andDriverInfoIdIn(List<Integer> values) {
            addCriterion("driver_info_id in", values, "driverInfoId");
            return (Criteria) this;
        }

        public Criteria andDriverInfoIdNotIn(List<Integer> values) {
            addCriterion("driver_info_id not in", values, "driverInfoId");
            return (Criteria) this;
        }

        public Criteria andDriverInfoIdBetween(Integer value1, Integer value2) {
            addCriterion("driver_info_id between", value1, value2, "driverInfoId");
            return (Criteria) this;
        }

        public Criteria andDriverInfoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("driver_info_id not between", value1, value2, "driverInfoId");
            return (Criteria) this;
        }

        public Criteria andCarInfoIdIsNull() {
            addCriterion("car_info_id is null");
            return (Criteria) this;
        }

        public Criteria andCarInfoIdIsNotNull() {
            addCriterion("car_info_id is not null");
            return (Criteria) this;
        }

        public Criteria andCarInfoIdEqualTo(Integer value) {
            addCriterion("car_info_id =", value, "carInfoId");
            return (Criteria) this;
        }

        public Criteria andCarInfoIdNotEqualTo(Integer value) {
            addCriterion("car_info_id <>", value, "carInfoId");
            return (Criteria) this;
        }

        public Criteria andCarInfoIdGreaterThan(Integer value) {
            addCriterion("car_info_id >", value, "carInfoId");
            return (Criteria) this;
        }

        public Criteria andCarInfoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("car_info_id >=", value, "carInfoId");
            return (Criteria) this;
        }

        public Criteria andCarInfoIdLessThan(Integer value) {
            addCriterion("car_info_id <", value, "carInfoId");
            return (Criteria) this;
        }

        public Criteria andCarInfoIdLessThanOrEqualTo(Integer value) {
            addCriterion("car_info_id <=", value, "carInfoId");
            return (Criteria) this;
        }

        public Criteria andCarInfoIdIn(List<Integer> values) {
            addCriterion("car_info_id in", values, "carInfoId");
            return (Criteria) this;
        }

        public Criteria andCarInfoIdNotIn(List<Integer> values) {
            addCriterion("car_info_id not in", values, "carInfoId");
            return (Criteria) this;
        }

        public Criteria andCarInfoIdBetween(Integer value1, Integer value2) {
            addCriterion("car_info_id between", value1, value2, "carInfoId");
            return (Criteria) this;
        }

        public Criteria andCarInfoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("car_info_id not between", value1, value2, "carInfoId");
            return (Criteria) this;
        }

        public Criteria andOperatorUserIsNull() {
            addCriterion("operator_user is null");
            return (Criteria) this;
        }

        public Criteria andOperatorUserIsNotNull() {
            addCriterion("operator_user is not null");
            return (Criteria) this;
        }

        public Criteria andOperatorUserEqualTo(String value) {
            addCriterion("operator_user =", value, "operatorUser");
            return (Criteria) this;
        }

        public Criteria andOperatorUserNotEqualTo(String value) {
            addCriterion("operator_user <>", value, "operatorUser");
            return (Criteria) this;
        }

        public Criteria andOperatorUserGreaterThan(String value) {
            addCriterion("operator_user >", value, "operatorUser");
            return (Criteria) this;
        }

        public Criteria andOperatorUserGreaterThanOrEqualTo(String value) {
            addCriterion("operator_user >=", value, "operatorUser");
            return (Criteria) this;
        }

        public Criteria andOperatorUserLessThan(String value) {
            addCriterion("operator_user <", value, "operatorUser");
            return (Criteria) this;
        }

        public Criteria andOperatorUserLessThanOrEqualTo(String value) {
            addCriterion("operator_user <=", value, "operatorUser");
            return (Criteria) this;
        }

        public Criteria andOperatorUserLike(String value) {
            addCriterion("operator_user like", value, "operatorUser");
            return (Criteria) this;
        }

        public Criteria andOperatorUserNotLike(String value) {
            addCriterion("operator_user not like", value, "operatorUser");
            return (Criteria) this;
        }

        public Criteria andOperatorUserIn(List<String> values) {
            addCriterion("operator_user in", values, "operatorUser");
            return (Criteria) this;
        }

        public Criteria andOperatorUserNotIn(List<String> values) {
            addCriterion("operator_user not in", values, "operatorUser");
            return (Criteria) this;
        }

        public Criteria andOperatorUserBetween(String value1, String value2) {
            addCriterion("operator_user between", value1, value2, "operatorUser");
            return (Criteria) this;
        }

        public Criteria andOperatorUserNotBetween(String value1, String value2) {
            addCriterion("operator_user not between", value1, value2, "operatorUser");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNull() {
            addCriterion("created is null");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNotNull() {
            addCriterion("created is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedEqualTo(Date value) {
            addCriterion("created =", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotEqualTo(Date value) {
            addCriterion("created <>", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThan(Date value) {
            addCriterion("created >", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThanOrEqualTo(Date value) {
            addCriterion("created >=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThan(Date value) {
            addCriterion("created <", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThanOrEqualTo(Date value) {
            addCriterion("created <=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedIn(List<Date> values) {
            addCriterion("created in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotIn(List<Date> values) {
            addCriterion("created not in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedBetween(Date value1, Date value2) {
            addCriterion("created between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotBetween(Date value1, Date value2) {
            addCriterion("created not between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andBindTimeIsNull() {
            addCriterion("bind_time is null");
            return (Criteria) this;
        }

        public Criteria andBindTimeIsNotNull() {
            addCriterion("bind_time is not null");
            return (Criteria) this;
        }

        public Criteria andBindTimeEqualTo(Date value) {
            addCriterion("bind_time =", value, "bindTime");
            return (Criteria) this;
        }

        public Criteria andBindTimeNotEqualTo(Date value) {
            addCriterion("bind_time <>", value, "bindTime");
            return (Criteria) this;
        }

        public Criteria andBindTimeGreaterThan(Date value) {
            addCriterion("bind_time >", value, "bindTime");
            return (Criteria) this;
        }

        public Criteria andBindTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("bind_time >=", value, "bindTime");
            return (Criteria) this;
        }

        public Criteria andBindTimeLessThan(Date value) {
            addCriterion("bind_time <", value, "bindTime");
            return (Criteria) this;
        }

        public Criteria andBindTimeLessThanOrEqualTo(Date value) {
            addCriterion("bind_time <=", value, "bindTime");
            return (Criteria) this;
        }

        public Criteria andBindTimeIn(List<Date> values) {
            addCriterion("bind_time in", values, "bindTime");
            return (Criteria) this;
        }

        public Criteria andBindTimeNotIn(List<Date> values) {
            addCriterion("bind_time not in", values, "bindTime");
            return (Criteria) this;
        }

        public Criteria andBindTimeBetween(Date value1, Date value2) {
            addCriterion("bind_time between", value1, value2, "bindTime");
            return (Criteria) this;
        }

        public Criteria andBindTimeNotBetween(Date value1, Date value2) {
            addCriterion("bind_time not between", value1, value2, "bindTime");
            return (Criteria) this;
        }

        public Criteria andUnbindTimeIsNull() {
            addCriterion("unbind_time is null");
            return (Criteria) this;
        }

        public Criteria andUnbindTimeIsNotNull() {
            addCriterion("unbind_time is not null");
            return (Criteria) this;
        }

        public Criteria andUnbindTimeEqualTo(Date value) {
            addCriterion("unbind_time =", value, "unbindTime");
            return (Criteria) this;
        }

        public Criteria andUnbindTimeNotEqualTo(Date value) {
            addCriterion("unbind_time <>", value, "unbindTime");
            return (Criteria) this;
        }

        public Criteria andUnbindTimeGreaterThan(Date value) {
            addCriterion("unbind_time >", value, "unbindTime");
            return (Criteria) this;
        }

        public Criteria andUnbindTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("unbind_time >=", value, "unbindTime");
            return (Criteria) this;
        }

        public Criteria andUnbindTimeLessThan(Date value) {
            addCriterion("unbind_time <", value, "unbindTime");
            return (Criteria) this;
        }

        public Criteria andUnbindTimeLessThanOrEqualTo(Date value) {
            addCriterion("unbind_time <=", value, "unbindTime");
            return (Criteria) this;
        }

        public Criteria andUnbindTimeIn(List<Date> values) {
            addCriterion("unbind_time in", values, "unbindTime");
            return (Criteria) this;
        }

        public Criteria andUnbindTimeNotIn(List<Date> values) {
            addCriterion("unbind_time not in", values, "unbindTime");
            return (Criteria) this;
        }

        public Criteria andUnbindTimeBetween(Date value1, Date value2) {
            addCriterion("unbind_time between", value1, value2, "unbindTime");
            return (Criteria) this;
        }

        public Criteria andUnbindTimeNotBetween(Date value1, Date value2) {
            addCriterion("unbind_time not between", value1, value2, "unbindTime");
            return (Criteria) this;
        }

        public Criteria andTotalMileIsNull() {
            addCriterion("total_mile is null");
            return (Criteria) this;
        }

        public Criteria andTotalMileIsNotNull() {
            addCriterion("total_mile is not null");
            return (Criteria) this;
        }

        public Criteria andTotalMileEqualTo(Integer value) {
            addCriterion("total_mile =", value, "totalMile");
            return (Criteria) this;
        }

        public Criteria andTotalMileNotEqualTo(Integer value) {
            addCriterion("total_mile <>", value, "totalMile");
            return (Criteria) this;
        }

        public Criteria andTotalMileGreaterThan(Integer value) {
            addCriterion("total_mile >", value, "totalMile");
            return (Criteria) this;
        }

        public Criteria andTotalMileGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_mile >=", value, "totalMile");
            return (Criteria) this;
        }

        public Criteria andTotalMileLessThan(Integer value) {
            addCriterion("total_mile <", value, "totalMile");
            return (Criteria) this;
        }

        public Criteria andTotalMileLessThanOrEqualTo(Integer value) {
            addCriterion("total_mile <=", value, "totalMile");
            return (Criteria) this;
        }

        public Criteria andTotalMileIn(List<Integer> values) {
            addCriterion("total_mile in", values, "totalMile");
            return (Criteria) this;
        }

        public Criteria andTotalMileNotIn(List<Integer> values) {
            addCriterion("total_mile not in", values, "totalMile");
            return (Criteria) this;
        }

        public Criteria andTotalMileBetween(Integer value1, Integer value2) {
            addCriterion("total_mile between", value1, value2, "totalMile");
            return (Criteria) this;
        }

        public Criteria andTotalMileNotBetween(Integer value1, Integer value2) {
            addCriterion("total_mile not between", value1, value2, "totalMile");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}